package com.example.demo;

import com.example.demo.Util.BaseUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@MapperScan("com.example.demo.mapper") //扫描的mapper
@SpringBootApplication
public class LightMonitorApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context=SpringApplication.run(LightMonitorApplication.class, args);
		BaseUtil.setApplicationContext(context);
	}

}
